Skip to content

Conversation

@googsvg
Copy link
Contributor

@googsvg googsvg commented Jan 21, 2026

License

I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@googsvg googsvg requested a review from AaronDDM January 21, 2026 16:36
@googsvg googsvg changed the title CUST-4111: improve to more descriptive error response & validate event end vs start time CUST-4111: improve to more descriptive error response & validate event's start vs end time Jan 21, 2026
@googsvg
Copy link
Contributor Author

googsvg commented Jan 21, 2026

This PR will cover two tickets:
https://nylas.atlassian.net/browse/CUST-4111 → validation of event's start vs end time in create/update, and better error message handling

https://nylas.atlassian.net/browse/CUST-4162 → automatically also more descriptive error response when API error response cannot be parsed

@googsvg googsvg changed the title CUST-4111: improve to more descriptive error response & validate event's start vs end time CUST-4111/CUST-4162: improve to more descriptive error response & validate event's start vs end time Jan 21, 2026
@codecov-commenter

This comment was marked as resolved.

Add test case for the scenario where API returns valid JSON but
the error object parses to null, triggering the final fallback
error message path in NylasClient.

This improves test coverage for the enhanced error handling
introduced in the previous commit.

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
@googsvg googsvg requested a review from AaronDDM January 21, 2026 16:51
@googsvg googsvg merged commit c9a949b into main Feb 4, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants